package com.rc.evcharger.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Create by Yang on 2021/12/21
 */
@Configuration
public class RouterConfig {

    public static String APPLICATION_NAME;

    public static String APPLICATION_PATH;

    public String getApplicationName() {
        return APPLICATION_NAME;
    }

    @Value("${spring.application.name}")
    public void setApplicationName(String applicationName) {
        APPLICATION_NAME = applicationName;
    }

    public String getApplicationPath() {
        return APPLICATION_PATH;
    }

    @Value("${project.application.path}")
    public void setApplicationPath(String applicationPath) {
        APPLICATION_PATH = applicationPath;
    }


    public static final String STD_SERVICE_PATH="/rc-evcharger";

    public static final String MUL_SERVICE_PATH="/jinzhuang-saas-mutievcharger";

    //启动充电接口路径
    public static final String APP_START_CHARGE_PATH = "/app/query_start_charge";
    public static final String WECHAT_START_CHARGE_PATH = "/wechat/query_start_charge";
    public static final String EVCS_START_CHARGE_PATH = "/evcs/query_start_charge";
    public static final String STD_START_CHARGE_PATH = "/std/query_start_charge";

    //结束充电接口路径
    public static final String APP_STOP_CHARGE_PATH = "/app/query_stop_charge";
    public static final String WECHAT_STOP_CHARGE_PATH = "/wechat/query_stop_charge";
    public static final String EVCS_STOP_CHARGE_PATH = "/evcs/query_stop_charge";
    public static final String STD_STOP_CHARGE_PATH = "/std/query_stop_charge";

    //远程升级接口路径
    public static final String CMD_REMOTE_UPDATE = "/eurekaCmd/sendRemoteUpdate";


    //非标充电、停止接口
    public static final String MUTI_WECHAT_START_CHARGE_PATH = "/mutiWechat/query_start_charge";
    public static final String MUTI_WECHAT_STOP_CHARGE_PATH = "/mutiWechat/query_stop_charge";

    //桩解锁接口
    public static final String WECHAT_UNLOCK_PATH = "/command/sendUnlock";
    //桩用户余额下发
    public static final String USER_ACCOUNT_PATH = "/command/sendUserAccount";


    //远程查询桩实时功率
    public static final String REMOTE_FIND_POWE_PATH = "/eurekaCmd/sendFindElecPilePower";


    //远程更新桩功率
    public static final String REMOTE_UDPADE_POWE_PATH = "/eurekaCmd/sendUpdateElecPilePower";

}
